package pl.praca.magisterska.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;



public class AuthorizationToolkit {

	public static Boolean isUserAuthorized(HttpServletRequest request){
		
		HttpSession session = request.getSession(true);
		if(session.getAttribute("person") == null){
			return false;
		}else{
			return true;
		}
	}
}
